﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Domain.Entities
{
    public partial class Category : Domain.Core.IZTree
    {
        #region IZTree 成员

        public int id
        {
            get
            {
                return this.ID;
            }
            set
            {
                this.ID = value;
            }
        }

        public string name
        {
            get
            {
                return this.Name;
            }
            set
            {
                this.Name = value;
            }
        }

        public int pId
        {
            get
            {
                return this.ParentID ?? 0;
            }
            set
            {
                this.ParentID = value;
            }
        }

        public bool isParent
        {
            get { return this.IsParent; }
            set { this.IsParent = value; }
        }

        public string url
        {
            get;
            set;
        }

        #endregion
    }
}
